{*This is only for those who have specical permission*}
{permissions level=$smarty.const.UILEVEL_PERMISSIONS}
{if $permissions.administrate == 1}
<a href="{link action=list module=cufonmodule}">Manage Cufon</a>
{/if}
{/permissions}
{*Here we load cufont and replace font*}
<script language=javascript src="{$smarty.const.THEME_RELATIVE}modules/cufonmodule/cufon.js"></script>
{*load font files - Sorry, no need to load font until this module upgrade to version 1.0
{foreach from=$font_files item=font key=font_key}
	<script language=javascript src="{$smarty.const.THEME_RELATIVE}modules/cufonmodule/fonts/{$font->item->fontfile_name}.js"></script>
{/foreach}
*}
<script language=javascript src="{$smarty.const.THEME_RELATIVE}modules/cufonmodule/fonts/UTM_Duepuntozero.font.js"></script>
{*font replace*}
<script language="javascript">
{literal}
	$(document).ready(function() {
	{/literal}
		{foreach from=$font_files item=font key=font_key}
			Cufon.replace('{$font->tag_name}', {literal}{{/literal} fontFamily: '{$font->font_name}', fontSize : '{$font->fontsize}px' {literal}}{/literal});
		{/foreach}
	{literal}
	}); 
{/literal}
</script>
